/*
 * PreferencesDialog.h
 *
 *  Created on: Jan 1, 2009
 *      Author: sez
 */

#ifndef PREFERENCESDIALOG_H_
#define PREFERENCESDIALOG_H_

#include <QDialog>

#include "ui_preferences.h"

class XmlDirectory;

class PreferencesDialog : public QDialog
{
    Q_OBJECT

public:
    PreferencesDialog(QWidget *parent = 0);
    virtual ~PreferencesDialog();
    static PreferencesDialog *dialog(QWidget *parent = 0);
Q_SIGNALS:
    void statusMessage(const QString &message);
    void dataFilePathUpdated(const QString &);
protected:
private Q_SLOTS:
    void on_dataFilePathPushButton_clicked(bool);
    void on_dataFilePathLineEdit_textEdited(const QString &);
    void on_buttonBox_accepted();
private:
    void updateDataPathWarnings(const QString &text = QString());

    Ui::PreferencesDialog mPrefs;
    XmlDirectory *xmlDir;
};

#endif /* PREFERENCESDIALOG_H_ */
